package com.tech.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * @Title Menu.java
 * @Description 菜单树
 * @author willard
 * @date 2018年12月8日 下午4:51:15
 * @version V1.0
 */
public class ItemCatMenu implements Serializable{

    private static final long serialVersionUID = 1L;
    // 菜单id
    private Long id;
    // 菜单名称
    private String name;
    // 父菜单id
    private Long parentId;
    // 菜单顺序
    private Integer sortOrder;
    // 是否是父节点
    private Boolean isParent;
    // 子菜单
    private List<ItemCatMenu> children;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    public List<ItemCatMenu> getChildren() {
        return children;
    }

    public void setChildren(List<ItemCatMenu> children) {
        this.children = children;
    }
    
    public Boolean getIsParent() {
        return isParent;
    }

    public void setIsParent(Boolean isParent) {
        this.isParent = isParent;
    }

    @Override
    public String toString() {
        return "Menu [id=" + id + ", name=" + name + ", parentId=" + parentId + ", sortOrder=" + sortOrder
                + ", children=" + children + "]";
    }

    
}
